<template>
  <div class="legend">
    <div class="red short-line"></div>
    <p>Views</p>
    <div class="blue short-line"></div>
    <p>Purchases</p>
  </div>
</template>

<style lang="scss" scoped>
.legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 64px;
  border-bottom: 1px solid #ddd;

  & > * {
    margin: 0.2rem;
  }

  p {
    font-size: 0.8rem;
    /* color: aliceblue; */
  }

  .short-line {
    width: 0.6rem;
    height: 0.15rem;
  }

  .red {
    background-color: red;
  }
  .blue {
    background-color: blue;
  }
}
</style>
